package iotwisp.school.area.entity;

import iotwisp.base.tree.TreeDataBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@DynamicUpdate
@DynamicInsert
@Entity
@Table(name = M.TABLE_PREFIX + "area")
public class Area extends TreeDataBaseEntity {

    @Column(name = "name", length = 32)
    private String name;

    @Column(name = "description", length = 256)
    private String description;

    @Column(name = "type", length = 32)
    private String type;
}
